<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../bootstrap-3.3.7-dist/css/bootstrap.css"/>
	</head>
	<body>
		
		<table class="table" border="1px solid black">
			<tr>
				<td>序号</td>
				<td>名称</td>
				<td>价格</td>
				<td>数量</td>
			</tr>
			<tr>
				<td>1</td>
				<td>htc</td>
				<td>3200</td>
				<td>10</td>
			</tr>
			<tr>
				<td>1</td>
				<td>htc</td>
				<td>3200</td>
				<td>10</td>
			</tr>
			<tr>
				<td>1</td>
				<td>htc</td>
				<td>3200</td>
				<td>10</td>
			</tr>
			<tr >
				<td>1</td>
				<td>htc</td>
				<td>3200</td>
				<td>10</td>
			</tr>
			
		</table>
		
		<script>
			$("tr:even").css("background-color","#008000");
			$("tr:lt(1)").css("background-color","yellow");
		</script>
	</body>
</html>
